xen/arm: traps: Simplify the switch in do_trap_*_abort_guest
authorJulien Grall <julien.grall@arm.com>
Thu, 4 Aug 2016 17:50:02 +0000 (18:50 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 4 Aug 2016 17:53:30 +0000 (10:53 -0700)
commit9193c7ac6c8e54b327a5d99fc40f5bde3e262da9
treee3414e07fedb5305ad04dd68d10b4db34186fd78
parente67f56bbeccbb2b3e1fbe605b83c08918f19bf7c
xen/arm: traps: Simplify the switch in do_trap_*_abort_guest

The fault status we care are in the form BBBBxx where xx is the lookup
level that gave the fault. We can simplify the code by masking the 2 least
significant bits.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c